import { createStore } from 'vuex'
import persist from "vuex-persistedstate"

export default createStore({
  state: {
    userInfo:null,
  },
  getters: {
  },
  mutations: {
    stateSerr(state,data){
      state.userInfo=data
    }
  },
  actions: {
    stateSer({commit},data){
      commit("stateSerr",data)
    }
  },
  modules: {

  },
  plugins:[
    new persist({
      storage:window.localStorage
    })
  ]
})
